Fixes for Linux/X11

Ignore jwzgles for now, until we actually need to link against OpenGLES 1.x
Fixes for Linux/X11 compilation
use stack memory
tweak macro for NDEBUG