made mem detection on BSD stupid until better solution is found