Fix number_of_threads flag.

Use correct type (boost::int64_t, not int) and
use a unique name for the flag object.
CMAKE_LINKER_FLAGS does not exist.