Fix Mac target warnings. Headers in compile phase and different unused variable warnings.