Replace xtl::delete_ptr functor with lambdas
Remove xtl::copy_if because:
- It is included in C++11
- Nobody was using it anyway >_<