Generate dynamic library

Added a few lines to Makefile.in to generate dynamic library libtgl.so