Build machinery: Build all our library tests

They are runnable via "make check", as per autotools rules.

Signed-off-by: Andreas Ericsson <ae@op5.se>
build machinery: Make 'test' an alias for 'check'

I prefer it personally and it's been the standard for a long time.

Signed-off-by: Andreas Ericsson <ae@op5.se>