Clear attributes after lib declaration
Don't store library path as a global constant.