Try setting CC and CXX explicitly.