Fix for #790. Allows to compile on Xcode 4.x