2 trivial bug fixes

This installs a missing header, and makes sure the returned candidates always have their frequency assigned.