Update build settings, cleanup warnings.