Fix an issue with global variables
Fix an issue with global variables

Move global file cache instances to local static variables to prevent
issue reported by Vincent Lorenzo (segmentation fault when a device
instance is created in global scope).

ddemidov/ev3dev-lang-cpp