Fix comparisons in assertions.

Reported by:	Coverity
Coverity CID:	1130048
Initialize cookie before use.

Reported by:	Coverity
Coverity CID:	1135292
Add libcapsicum and libcasper libraries that were moved from /usr/lib/ to /lib/.

Reviewed by:	glebius