Add platform::sizedMalloc() implementation

This returns the actual size of the malloc()ed area on supported
platforms (Mac OS X and Linux at the moment). This is used just for the
StringCell heap allocation at the moment but the garbage collector will
be ported later.