add version control macro and remove target os version 7.0 and remove deprecate method

@mxcl Please check my changes.
* add version control macro and remove target os version 7.0
* remove deprecate method(It is safe to delete because only I do not use probably)
Please check