Add optional completion handler to -flush
Make project changes for Xcode 6.1