Clean up makefiles

-> Removed most of the MODE warnings
-> Removed references to deleted threads library