Fixed compile bug in ObjectLoader
Added sprite rendering to cmake.