interface: added mutexes which are dependent on the GUI
pro: added interface into pro file
prim: removed dependency on mutexes

Mutexes are only available if run with GUI, so I moved them into
interface.h