Jrobinson/configure for cross

Revised pull request for the correct branch with what should be a sane diff.