Platform: fix compilation of NaCl applications.
Merge branch 'master' into compatibility