Automake integration

Integrate polarssl to automake, fixes #1522