Add basic checks for libraries in C and C++