Phu... don't use ninja on ubuntu... It leads to:
-- Check for working C compiler using: Ninja -- broken