make sure resources are loaded from static library