mem_total in BSD should return as an int, see #7104