Make codesigning on osx optional.