Build fails with BSD make
Fix build with LibreSSL 2.7
Replace deprecated des_ methods/types with DES_ variants