Switch to autoconf system

The windows platform build needs to be tested as I'm unsure if it works and if pkgconfig provide correct values on this platform.

API has been extented as well for setting unit size in case we're already working with packetized data.