Tweaked library for compatibility with PHP geoip extension

- Wrapped all function declarations in "if(!function_exists())" checks, to make sure that functions already provided by the PHP geoip extension are not redeclared.