Fixes #9

Finally got it to compile using C++11 AND glfw/glew
Fixed mutex locking while I was at it. (I think)