Compile in c99 mode
Properly store and free listener info