add check for PHPOS != Darwin