Made get_avail_mem_size actually work on OS X, using HOST_VM_INFO64, host_statistics64, HOST_VM_INFO64_COUNT, instead of not working.