add ifdef for UNIX version