Modify configure file
Fix MacOS runtime error