fix detecting standard libraries (fixes #6)

the real reason for the 'present but cannot be compiled' warning
is an unknown gcc option which made the configure think the header
cannot be used. Without the -Wno-unused-result the configure is
just fine at the price of some more compiler warnings.