pthread: fix pthread.h creation for srcdir != builddir