fix gnu/linux and bsd links