add patch which can be applied to the libs subdir

to make libraries compile