Clean up a bunch of build warnings.