Clean up build warnings and add missing XML doc comments.