Fix linking for OSX and Linux

…hopfully? Used -lglfw3 on OSX, added -lGL for linux builds.