Use pkg-config for building against R on linux