Fixed all warnings emitted by GCC 4.8