Mac and linux support for berkeley db