fixed some problems with hud code not compiling, and modified Makefile to specify library path when running application