Added undef statements to disable multithreading when compiled with Boost library already linked