Add inline keyword to free header functions

Fixes #182.