use _BIDGetECDHCurve
fixes for building without OpenSAML
winlib: compile fixes