* fix compile error for g++ compiler