Replace alloca.h with stdlib.h; the former doesn't exist on FreeBSD.
Fix test to actually do what the comment says and send too low CmdSN.
Merge pull request #79 from trasz/master

Replace alloca.h with stdlib.h; the former doesn't exist on FreeBSD.