- added format patch (fixes build with -Werror=format-security)
- enhanced cmake patch by one part needed with current cmake
- adjusted for cmake "PLD" build type