fix linking error on ubuntu