Ubuntu 12.04 compatibility

- use xcrypt.h if available
- support both automake 1.11 and 1.12+