Fix patching failure on NetBSD 5.2.