[Makefile] Allow user to overwrite compilers
[Makefile] Move library to the end

this avoids undefined reference problems