Moved variables local to file initialization from default constructor to gcc attribute constructor function to ensure it is called only once