Fix undefined shifts and abs in Alpha backend. Based on patch by Ahmed Charles.