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().
Merge pull request #228 from linkmauve/glfw-error

GLFW: Add an error callback before calling glfwInit()