Fixed curses paths for OSX, improved compiler flags list.