Fix most of the warning reported during the build process