C likes to promote types more than I expected.

Added casts to fix.
Switched from # to $ for uniquifying function names

# fails mysteriously for me on linux, but $ does not
Reinserted -rdynamic for linux only
Merge branch 'master' of github.com:halide/Halide