get library dependency in correct order for Linux