makefile: add version definitions to makefile & CMakeLists