[build] some configure fixes