[build] Make it build with mb2

The current version of mb2 doesn't seem to be able to replace
%{name} with obexd in this situation, so we do it ourselves
[compilation] Fix compilation on glibc 2.19/gcc 4.8
Merge pull request #19 from faenil/nemomerge_fixes

Fixes for build with mb2 and compilation with gcc4.8.3