building script for os/x