fix linking on some version of ubuntu