Fix some errors due to newer version of babel. Make sure webpack exits with non-zero exit code if build fails ಠ_ಠ. [ci all]