Fixed bug #310 ; also added pkgconfig path for ubunutu