Sorry to revive an old thread, but you might be interesting in knowing that I've upgraded the media_harmony Samba module to work with current Samba sources, which might make adding it to your project somewhat easier.
https://bugzilla.samba.org/show_bug.cgi?id=8841
I've also got code that builds against the latest release (3.6.3, as opposed to git-latest) that I can provide via email if you're interested.