Made get_avail_mem_size also use vmstat.external_page_count so that file-backed pages are considered available.
Made get_avail_mem_size actually work on OS X, using HOST_VM_INFO64, host_statistics64, HOST_VM_INFO64_COUNT, instead of not working.
Merge branch 'sam_3193_mac' into next