Added 2D rendering and fixed source for Xcode 6 beta 3