Fixed build issues with default distance metric
Merge pull request #651 from lev-kuznetsov/master

Fixed build issues with default distance metric