Code style and warning fixes.