fix check and warning builds