Fixed warnings for functions min and max.

Hello,

I noticed some warnings while using Gadfly. It seems that min and max functions are deprecated and we should use minimum and maximum instead. This commit fixes the warnings. Does it seem good to you ?

Bests.