Add generator script required for OSX/iOS builds
Change OSX building to use perl generator scripts