Fix library linking issues for status library