add checks for cmake and g++