fix to work with stringprep 1.0
fix some warnings