Use pkg-config to determine libs and cflags

This makes us immune against systemd's library splits and joins (like
all libs being integrated into libsystemd)
Add vsn since rebar requires it
Add rebar.config

This allows us to build with rebar
Merge pull request #3 from agx/rebar

Support building via rebar