Tweak ServiceProvider

Pull the defines etc outside the dompdf binding. Will only be run when
dompdf is requested, because of deferred.