Added conditional compilation for GLFW and SDL2

Closes https://github.com/PistonDevelopers/piston/issues/396
Merge pull request #397 from bvssvni/master

Added conditional compilation for GLFW and SDL2