[RFC] Fix build warnings.

Fixes two build warnings in separate commits:

    # warning _FORTIFY_SOURCE requires compiling with optimization (-O)

    The target name "test" is reserved or not valid for certain CMake
    features, such as generator expressions, and may result in undefined
    behavior.