Fix MaxOSX flags and paths