configure: Added a WINE_CHECK_LIB_FUNCS macro to check for functions when linking with specific libraries.