Added conditional compilation for GLFW and SDL2

Closes https://github.com/PistonDevelopers/piston/issues/396