Fixes compilation warnings