MODIFIED: enable to compile a extension library