Add include paths to fix Raspberry Pi header bugs

Add missing linker flag to .pc.in
Make library C compatible

Use extern "C" to retain C++ compatibility