Updated KVLib and fixed warnings