fixed some build issues on non-windows systems