fix compilation errors on Mac