update deployment target, fix deprecated issues