fix TERM warnings when building