apr use a AC_TRY_RUN to check if PTHREAD_MUTEX_RECURSIVE is supported and this don't work on cross compile.