Fixed compiler warnings (-Wextra).