Upgrade Jinja to get the filesizeformat fix. Fix bug 965773.

Jinja now depends on MarkupSafe as well.

Add python-dev headers to the VM so we can compile the optional MarkupSafe speedups.