fix to not crash when built with msvc6 ( bad calling convention on imports ).