Fixed PNaCl compilation on OSX and Linux