compile library modules to bytecode