Fix vhook build on Cygwin, shared builds only.