fix const qualifier
fix incompatible types
update submodule