build: fix library installation on cygwin