Corrected compatibility errors with compiler g++ 4.7.3.