switch to cmake and test libnoise using it