Fix library definitions for ms-windows