Configure discount using --shared

Thanks to Christian Kellermann for pointing that out.

The sed line had a bug: it didn't actually write the Makefile
Use libmarkdown2-dev instead of installing discount from sources