Added compileRequiredModules/0 to compile required modules automatically.