Fix a few silly errors.

Builds properly and a test program can call it by linking against -lao -lpoly
and including poly.h alone.