this is the new magic incantation for finding *NAN*, needed to support installing to directories with spaces in their names. I've shifted `'include_dirs'` up to here rather than repeat it in each conditional below since it's required for all anyway.