fixed version numbers
Use compat api macros
Simplified hp_get_function_name()