Fixed compiler warnings from clang (including small bug in private key loading)
Use system default C compiler instead of gcc in build script
Fixes for OpenBSD (thanks to Pi <pi-quicktun@mrtheplague.net> and SeekingFor)