Compatibility hacks to support older versions of 0.3 Julia.