fixed compile error in gcc version 4.1.2