correct paths for x86_64/generic installations
inline default_reference_func to avoid multiple definition errors