Add SPDX license identifier to source files (#1453)
SPDX license identifiers help tools to identify the right licenses.
Especially detecting that the user can choose to GPL 2+ or Apache 2.0 is
difficult to detect, it can be misinterpreted that the user has to
comply with both licenses.
Fixes #1451