updated syntax for v0.4 and added Compat requirement

helps fix warnings with Gadfly