[FIX] fix windows compile error

- windows complains about "redefinition; different linkage" which should
  be fixed if declaration and definition match.
Merge pull request #852 from hroest/fix/WindowsFix

[FIX] fix windows compile error (redefinition; different linkage)