make native build play well with external build systems