Fixed compilation errors on GCC 4.7.2, Ubuntu Linux.