Build correctly with frameworks