enabe C language for check_library_exists macro

Solves error with linux compilation in some cases