Add basic dependency checking to build.sh.
Move <math.h> include directive from sampleconv.c to sampleconv.h.

The sample conversion macros provided in sampleconv.h require <math.h>.