Add EventListener's attach/detach functions
Allow to compile with GCC (gcc doens't allow to swap two lambda of the same type)