Remove deprecated header
Make makefile work on Mac
Fix folder creation for mac