On Cygwin, use the "cyg" prefix, and accept also the normal "lib".