Try to support older CMake versions
Add header file to CMake api_test sources