GCC 4.7 toolchain fixes
Signed-off-by: Pafcholini <pafcholini@gmail.com>