There're a lot of logics for bmalloc in Algorithm.cpp and CryptoRandom.cpp which causes build error on Windows. Add implementation for them.
<rdar://problem/108802647>