Add the --disable-thp option to support cross compiling.

This resolves #669.
8 files changed