Fixed build failing with codesign turned on