fix compilation error on mac, seems it is a bug of the Clang compiler...