Fix build on Ubuntu 13.10/GCC.

Had to do some minor tweaks to get OSL build on a stock Ubuntu 13.10 using the built-in libraries.