couple of minor build fixes

Avoid confusion when an instance of 'flux' is already in the $PATH.

Fix up some compiler warnings in the simulator code, just pedantic stuff.