osx: fix check to use malloc in OSX >= 10.7

The host triplet in configure is not enough to determine
whether malloc can't be used or not, as it should be disabled
whenever we target OS X >= 10.7