[FIX] fix windows compile error

- windows complains about "redefinition; different linkage" which should
  be fixed if declaration and definition match.