Fix configure failing when cross-building for win32