fix a few build errors while building in smokestack