compile fix on linux/mac