Moved static initializations of global and local configurations to initialize() to properly handle exceptions.

Signed-off-by: Xunkar <xunkar@jenmaarai.com>