Builds test program, linked to library