finally compiled after commenting out iphone_os code