added joystick support on MacOSX

must be tested on Windows
MacOSX use hacked version of GLFW to enable joysticks