Platform: redirect debug output to JS console in NaClApplication.
Platform: fixed copypaste error.