Classes and functions were not correctly exported to dlls on windows