fixed compiler errors. xcode6 beta 2 still fucked