Fix for building on non-Windows platforms