We need to add `-shared` on Linux when invoking `ld`.