Minor fixes for nacl
Linking with pthread library.
Now using pnacl-lang.