Changes from Solaris testing (OpenIndiana)
- math.h was missing so switched to more portable method for power-of-two
- Solaris does not have LOG_PERROR
- Renamed prepare-travis-ci since it prepares build env now