Fix build with -fno-common
While here add the LICENSE information and move one variable to comply with the canonical order.