Updated library and fix some warnings