More OSX stuff
Enabled C++11 for emscripten
Some logging and threading stuff