ActiveAE: fix segfault caused by dangling gui sounds
ActiveAE: feed only first 512 samples of an audio buffer into viz
Merge pull request #3531 from FernetMenta/aefixes

ActiveAE fixes - Make Pike happy (viz, settings segfault)
CurlFile: no need for forward declaration if header is included