Unsetting CFitsIO variables during lookup

This avoids cmake complaining about undefined variables.