fixed Makefiles for standalone compilation

Signed-off-by: Christian Ege <k4230r6@gmail.com>