Fixed undefined references.
inline non-template free functions