Platform: redirect debug output to JS console in NaClApplication.
Platform: fixed copypaste error.
Merge branch 'master' into compatibility