add geoip support
port to ubuntu 14.04