fix linking status libraries