Fix some warnings.
Use apiviz to draw some dependency graphs.