Use compiler in CXX environment variable for tests