Wrap the m3d.h header Note: C++11 support required to use in a threaded environment Fix export memory leak (although exporter apopears to be unused) Apply clangformat.