Fix two warnings that show up when building with Xcode 5.1 Beta 4

i also submitted these upstream, but we can also merge them into our branch directly if we want.