Hmmm... I'll try compiling it with my PSPDev environment which is Devkit Pro with Heimdall's devpacks.
You'll find the libs and inlcude file you need by studying the source.
The include files you need to compile the code are found at the top of the .c / .h files. The lib files you need are found in the makefiles.
Include (header) file example of ctrlout.c in piKey:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include Lib file example of ctrlout/makefile in piKey:
LIBS += -lpspsystemctrl_kernel -lpspumd -lc -lpspuser -lpspkernel
You compiler should tell you what files are missing too.
If you need a file, let me know and I'll help you out.
I hope that helps.
Angelo