add extra's (credits to pac) and make the build script completely MAC OS x compatible