Clean up CMake library specification

The X11 libraries don't need to be specified when doing dynamic linking
Build GLFW as a shared lib on Travis
Merge pull request #275 from yuriks/cmake-clean

Clean up CMake library specification