Added catches to disable openMP when compiling with an incompatible compiler.

These changes allow for much easier compilation on Macs.
No change should be observable on other operating systems.
Multithreaded processing will be disabled in order to allow compilation when using certain compilers.
Fixed an error in mlg.filter. Average neighbor clustering should now work as expected.