fix compile under OS/X