Portability boost, gflags, glog

Compatible with LibreSSL #128