GCC 4.8: Fixed all warnings when using -Wall -Wextra -pedantic.