Fixed linker issues, fixed other warnings
Improved DLL resolution, Fixed warning