Fixed a very stupid bug in Debug

Fixed emscripten build. llvm bitcode actually shows a large amount of double
computation to get rid of
Started to fix windows MS build