fix part of clang compile

We still need to sort out the gcc PMF extension dependency issue.