Fixed some gcc and Automake warnings.