linking with boost: static -> dynamic