Run unittests on nacl

This is two changes:

 - fix a couple of warnings
 - run unittest on NaCl (using command line nexe loader).