Added -fPIC to a line in makefile.  Moved things around in LendaEvent