Fix bugs in SSSE3 optimizations

Signed-off-by: Harm Hanemaaijer <fgenfb@yahoo.com>