fix luajit and glut builds on linux

Fixes gluthost on linux (forces x11_shared to off in cmake instead of build script)
luajit was getting upset with vfs headers (_GNU_SOURCE was getting defined too late, so add it to flags instead)