Modernized to latest Web Audio spec. Also, fixed some compilation
errors.