fix compile problem with gcc 4.4 (fix #302)