bug fixes

allow mac os x specifics in included lua and correction to alert/internal.m