GCC 4.8: Fixed all warnings obtained with -Wall -pedantic -Wextra