fix lib build errors
fix example build errors