Fixed formatting and switch statement warnings
Merge pull request #227 from vaguilar/fix-warnings

Fixed formatting and switch statement warnings
GLFW: Add an error callback before calling glfwInit()

It will print a message to know what happened in case something went wrong in a GLFW call.

Also replace every printf() in the glfw emu-window by ERROR_LOG().