remove init.d examples for distributions that now use systemd
fix warnings found with static code analysis