Fix bug #940 (from the Savannah bug tracker): make sure that target-