Use correct index for ImportError message
Allow building on Cygwin