Made changes so the daemon could build on OS X 10.9.