Here is my latest fix. Included in tar file is:
ffdecsa <dir> - a newer version with header files for better optimizations (sse2, etc)
Makefile.sh4 - a makefile for building OSEmu for sh4 (optimizations and fix for unaligned userspace errors)
Makefile.x86.opt.sse3.g++ - a makefile for building OSEmu for x86
OSEmu.c - changes made to allow command line setting of stream server IP
module-emulator-osemu.c - changes made for compiling with g++
module-emulator-stream.h - changes made to allow command line setting of stream server IP
module-emulator-stream.c - optimization of csa decryption, multi-client connections for OSEmu (ignored when compiling oscam)
Download from git, then replace with files from tar.
https://github.com/oscam-emu/OSEmu.git
I will try to upload to git and make a pull request when I have time...