Cleaned up Makefile to make use of dynamic library building and linking for controls