Make inline functions static (fixes #1).

When not declared static, on -O0 gcc will generate external linkage.