Adding compile stuff to support build on os x mavericks.