close #9; fix a compilation error for library projects