Add support to the mac build for the new debug GUI for qtscript.

Refs. #3924.