Patch from Eric Valette <valette@…>:
Now that Joel told me how to compile outside the tree, I have found a few more bugs. Here is a small patch to fix them.