add ntl and cmake support