Use __APPLE__ instead of -DAPPLE

Modified all the exercises - solutions were already done.