wscript, src/io/*.c: use custom defines instead of __APPLE__