--- a/src/hugin1/hugin/ChoosyRemapper.cpp
+++ b/src/hugin1/hugin/ChoosyRemapper.cpp
@@ -19,6 +19,11 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  */
+
+#ifdef __WXMAC__
+#include "panoinc_WX.h"
+#include "panoinc.h"
+#endif
 
 #include "ChoosyRemapper.h"
 #include "ViewState.h"
@@ -66,6 +71,7 @@
         case HuginBase::PanoramaOptions::ALBERS_EQUAL_AREA_CONIC:
         case HuginBase::PanoramaOptions::ORTHOGRAPHIC:
         case HuginBase::PanoramaOptions::EQUISOLID:
+        case HuginBase::PanoramaOptions::THOBY_PROJECTION:
         // Add any projections where the poles maps to a big set of points here.
         case HuginBase::PanoramaOptions::PANINI:
         case HuginBase::PanoramaOptions::EQUI_PANINI: