updated syntax for v0.4 and added Compat requirement

helps warnings when testing Gadfly