fix library inclusion for windows