#fix build errors using gcc-4.7

https://gitorious.org/shr/linux/commit/a8444fa9d19403e5ee88ab6c1a34ce377
a2cbc4b