import restore-orig-size.patch from debian

Signed-off-by: Gaetan SEMET <gaetan@xeberon.net>