Elliptic genera, real algebraic varieties and quasi-Jacobi forms