Fixed builds for all versions to properly use windows crypto APIs