Updated makefile

SO compilation now possible. At the moment this file is in test phase,
but it works.