Fix errors of make on OS X