added optimization tags to makefiles