Defines first main function readRast

C code untested as libraries are not found
Splits declaration PKG_LIBS into two lines