Ubuntu 12.04 compatibility

- use xcrypt.h if available
- support both automake 1.11 and 1.12+
- reorder y2base dependencies so linker does not fail
debian packaging