I got it compiled in Linux!
What I did was I edited src/sounds.cpp like this:
case WEATHER_RAINY:
play_ambient_variant_sound( "environment", "WEATHER_RAINY", get_heard_volume( g->u.pos() ), 8,
1000 );
break;
case WEATHER_NULL:
case WEATHER_THUNDER:
case WEATHER_CLEAR:
case WEATHER_SUNNY:
case WEATHER_CLOUDY:
case WEATHER_ACID_DRIZZLE:
case WEATHER_ACID_RAIN:
case NUM_WEATHER_TYPES:
case WEATHER_LIGHTNING:
play_ambient_variant_sound( "environment", "WEATHER_THUNDER", get_heard_volume( g->u.pos() ), 7,
1000 );
Which I think makes the thunder noise when it’s clear and sunny and such. You can put it above whatever one you want to.
And then I saved this file to /src:
ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h
And it works so far! No car noises though, which is a bummer. But weather, danger, and multiple sounds for things.