added pkgsrc patches from here: http://pkgsrc.se/files.php?messageId=20140925202832.9AD9C98@cvs.netbsd.org