Added macro for compilers which doesn't support instancetype