Minor fixes to compile the DLL