Makefile changes

1) export LD_LIBRARY_PATH replaced by ldconfig
2) -L of gcc flag set with a constant