player: use pthread for mutexes instead of SDL2
loudness detector: depend on pthread instead of SDL2