Fixed cmake file that compiles the library:
 - do not include all postgres includes, this will become
   confusing to the compiler