configure: Implemented `--with-nan-emulation' for crosscompiling.