[mac] again fix compilation; choose posix or win