Add missing build dependencies to fix race conditions

It's hard to be sure, but I think that this patch will get rid of the race conditions we've been seeing in idl generation.  There were two problems: (i) apparent simultaneous invocations of `idlpp` on the same .idl file and (ii) missing dependencies for .srv generation.

Oh, and the past several hours have reminded me of how I hate CMake.