Fix ctests build