Fix library bug for linux