Make glew.c pass when GLEW_MX is defined.

Also, since we don't support multi-threaded context.
Lets just #define the functions in header file instead.
Use the same path for extension lookup as library_sdl.js