Fix linking against dl