Fixed header copying for mac os project