Update a number of issues when compiling on Linux

I've been backporting and testing everything while waiting for a functional OpenGL Rift implementation, and now that that seems to be freely available, it would probably be the best time to merge everything!