Refactoring.

'resetPermissions' method default implemtation added to JITMemoryManager.
TrivialMemoryManager class modifications: added resetPermissions method.
Resolving pnacl undefined references.