Fix: not use -g compile flag when building lib direcory