Fix testheader scripts.

The testheader scripts depends on the dmd behaviour to always overwrite
already written header files. The scripts are changed to write the header
files into a directory and remove the additional files created by LDC.
Fix intrinsics test: llvm_fabs() is not always available.