now gcc 4.7 compatible
removed mutex