Try amending configure with -sdk iphoneos