Weight metric fixes for diary notes

Fixes calendar entries (until someone changes their units). See https://github.com/GoldenCheetah/GoldenCheetah/issues/1067

Also allows for building out of source (see https://github.com/GoldenCheetah/GoldenCheetah/issues/1180)