minor fix build error for Mac