Fix shared library symbolic links in Makefile
More accurate C flags and library configuration in Makefile