Fix NaCl build.

Remove dependacy on nacl-mount headers from several
main.cpp files.

Allow old nacl-mounts build via NACL_MOUNTS=1 env var.

Move some makefile content to a common cocos2dx.mk file.

BUG=None

Review URL: https://codereview.chromium.org/12210106