apple: Introduce a central compatibility header with all __APPLE__ quirks
apple: Wrap accept() and recvfrom() with poll(2) instead of select
windows: Move the compatibility header to the compat subfolder