reduce GCC warnings
improve build process