fixed optlevel ; now supports compiling a module as a whole