lite-r227: fixed g++ compilation errors