added support for emscripten
Use PLATFORM_EMSCRIPTEN for consistency with waf-tools
fix unit tests
Merge pull request #2 from steinwurf/emscripten

Emscripten