Change "inline" to "static inline" in the C code to fix a compile error using clang.

Fixes #21.
Fix compilation error on base <4.4 re: Control.Monad.ST.Unsafe.

Fixes #20.