script: fix compilation warnings