fix compilation errors in noise.h