Added EXTERN and similar to compile ok on windows.
Patch from Andreas Kupries.
Bumped revision to 0.3.8