Fix pthread check on OS/2

pthread check fails due to -no-undefined of LDFLAGS. gcc4 treats
unknown flags as an error unlike gcc3.

Add -no-undefined libtool flag after all checks

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 jobs for master in 2 minutes and 35 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #252847
amd64 debian
build-debian

00:00:39

passed #252848
macos
build-macos

00:00:54

passed #252850
debian amd64 win32
build-win32

00:01:55

passed #252849
win64 amd64 debian
build-win64

00:01:57