-lrt and -lpthread order with static linking