fixes compilation issues