build script warning fixed

The warnig for deprecation during the build is removed.