Fix use of TARGET_OS_MAC; iOS also enables this.