Add try/catch-like macros to handle errors, and convert alSource.c to use them