Fix Ninja build