clean up warnings. now builds under -Wall -Werror.