GCC 4.7+ fixes

Signed-off-by: kecinzer <kecinzer@gmail.com>