converted to dynamic framework.  added os x compatibility