conditionally export kcm functions on windows