[build] remove some un-needed compile checks.