Clone from http://git.cryptomilk.org/users/asn/cmockery.git/