modified makefile to link with archive libraries