Link with debug or opt build depending on profile code in benchmark.
Merge pull request #10 from agorrod/mdb.changes

Link with debug or opt build depending on profile code in benchmark.