Bump discounts library version to 2.1.7.

Tests run (still need fixing), includes build adjustment to support 2.1.7
Update flags from v2.1.7's markdown.h