Fixed compilation issues with scripts.

Signed-off-by: Panajev <Panajev@gmail.com>