src/darwin: fix compilation for iOS