Fix lua project template crash on iOS5.1 device