version: move export variables into version.cpp
cmake: move X265_BUILD definition to near top of main CMakeLists.txt

This is just to make it easier to find