Allow PCH option to be on even if there is no library
Only build before library target if there is any
Only configure libtool for libraries that exist