Fixing build on non-Windows systems