Fix for --enable-legacy.  Fixes #1488
Merge pull request #1488 from mdboom/setup/fix-legacy

Error with install --enable-legacy