Process mkmf-related stuff only when pilot-link is needed.

Second try to avoid mkmf error.  Now I could build palm library.  Sorry for my insufficient check.