Fixes https://gitlab.labs.nic.cz/turris/turris-build/issues/149
Compile tested and patches refreshed.