move class name to export function, fix a strange issue in msvc.