Cygwin build fixes: update the dependencies, add -DNO_SECURITY to