EMX: Redo 2e73649d to fix regression.

The previous version could cause strange compile failures, see
https://github.com/bitwiseworks/mozilla-os2/issues/13#issuecomment-19116616
for an example.
EMX: Fix warning (HANDLE_PRAGMA_WEAK).