[build] small improvements that decreases time of rebuilding