how to fix some build errors