Fixed make parallelization bug with apr.h.

If starting with a pristine git checkout (thus no
3rdparty/apr/include/apr.h generated yet), parallel building ("make -j
N" where N > 1) can fail.