Ensure lib-prefix in static MinGW build. Closes #223.