some fixes for my suse compilation