add static keyword to inline functions to make clang happy