fixed some build errors