Trigger the system bell on compile errors

This is a small pull request that automatically triggers the system bell when an error message is printed after a compilation error. This can be really helpful if your terminal notifies you about this even when it is in the background (by bouncing/blinking the icon in the dock/task bar). This should not have any negative effects because most terminal emulators have an option to ignore the system bell character.

Fixes #388