Change library name to libdhvanitts
Fix compiler warnings related to type cast and parameter passing