[build] some build fixes