The compiler needs to be able to locate the header files such as slapi-plugin.h. Find header files in install-path/include/.