[bugfix] macroexpand

macroexpand restores pic->lib in the case of an error
Merge pull request #74 from koba-e964/master

[bugfix] macroexpand (Issue #68)