Fixed compile issue under Xcode 6.