bmf.wz.cz port to SDL and other libraries