use static linking for debug