VC++: Fixed compile errors with exported functions

error C2375: '...' : redefinition; different linkage