Fix func epxort issue on some windows systems
Fix linux build