build: fix compilation warning if dtrace doesn't work

Check if dtrace should instrument object files only if dtrace
support is detected to work