Fix for Darwin cross-compilation fails (issue #1)