Some VS DLL export fixes.