fixed a compile error on OSX 10.6.8 with GNU gcc 4.7.3