Add FindBugs plugin and fix warnings.