Fix xcode6 compatibility

Fix #3