autodetect apxs

Fixes issue #17