Added libraries and frameworks to use and modified compiler flags