Detect link args externally using pkg-config

This should fix the problems folks have been having with different package managers calling glfw different things. I'm not sure about my OS detection shell script. I wanted it external from the makefile so that users could call it when building their own glfw applications.