Changed library naming convention for mingw and cygwin. For details see comment in file. Also should resolve Ticket #1058 .