Make linking work on ubuntu