GCC 4.6: Fixed all warnings with -Wall -pedantic -Wextra -Wconversion -g