Mods to make it build with Xcode 4.6.3 and launch on 10.7.