Added support to compile with weak delegate pointers with backward compability for older compilers and SDK environments