Removed warnings in GCC 4.8 -Wall -pedantic