Fix two bugs in ACL compile code.

Fixes	#1312

See Also:	CVE-2013-4090