Fix for building on linux/mac