OFObject: Make Foundation check work on macOS 10.5