try to fix some build errors