delete libopts generated files if system libopts is being used
print the flags used for libopts
removed unneeded command
use srcdir as prefix