fix warnings and cmake...