[boost] Refactoring a library for header-only or linked library?