Fixed issues for running on iOS7 and new PCL profile