Linking hangs under Windows 7