Fixed Xcode compatibility, added debug scheme