fix standalone_static_library patching