Update makefiles to allow LTO builds