Fix linking problem on Windows.

Normally it works, but apparently inline functions are treated like
normal declarations when optimization level is -O0.
Merge pull request #919 from kacfengine/master

Fix linking problem on Windows.