FT-598 fixed malloc(0) on osx

Apparently on osx, malloc(0) returns something not fit to pass to
free().

This was causing crashes when allocating zero-length buffers, which
caused a crash before the env was finished initializing, causing the
symptom in FT-598.