Updated so custom professions work on OSX.

Fix for splintermind/Dwarf-Therapist#15

Malloc was used instead of mapping the memory into the Dwarf Fortress process. I've only done minor testing, but seems to work so far. It's just a port of the Linux chuck alloc code.