Missing Separator error

It seems that the PostgreSQL_INCLUDE_DIR value has a newline in it. Can you print it out in libpostgres? Something like:

message("PostgreSQL_INCLUDE_DIR: -->${PostgreSQL_INCLUDE_DIR}<--")

so that the beginning and end are marked.