Zyn fix: export now fully works with GUI either open/closed

And Now everything should work as it should...

(also fixed some header guards while I was at it)