Changed makefile to compile main without using shared library, for compatibility with Kraken