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
Merge pull request #312 from rolk/312_nolib

Allow several options to be used even if we don't have a library