Fix build for FreeBSD

* use /usr/local directory as default prefix for FreeBSD
* include CFLAGS, LDFLAGS, CPPFLAGS to AM_* equivalents
* check that dtrace command is actually working, not just present in
  the system

Change-Id: Ic12e70fe1417ec2c3c7fc4d86e30ff83aab640ee