Fix postbuild on mac