fix linux/mac build