fixed "deprecated functions" compiler warnings, fixed "undeclared selector" compiler warnings, fully compatible with XCode5 and sdk7.1