bump MAX_NAMES
refactor/simplify constant generation
Work around problem with constexpr on Windows.

This is for libcxx compilation on Windows and is a result of
http://llvm.org/PR15651.

See issue #1019 for more detail.
Merge pull request #1030 from waywardmonkeys/fix-windows-constexpr-problem

Work around problem with constexpr on Windows.
* Added glfw headers and testcases.
* Edited tests so they use emscripten_main_loop.
* Got triangle test about to work.
* Implemented misc functions.
* Misc functions.
* Added a test.
* Mouse events are ok.
* Keyboard events work partially.
* Minor fix.
* OpenGL extensions.
* Disabled setMousePos in library_glfw.
* Fixed mouse position.
* Header.
* Fixed glfw test.
* Added glfw headers and testcases.
* Edited tests so they use emscripten_main_loop.
* Got triangle test about to work.
* Implemented misc functions.
* Added a test.
* Mouse events are ok.
* Keyboard events work partially.
* Minor fix.
* OpenGL extensions.
* Fixed mouse position.