Fixed crash under OSX

Fixed a bug with ModuleClassLoader obtaining a classLoader outside of AccessController.doPrivileged()