patch to cool and cosacs Makefiles