fix compilation and static analyzer warnings