Validate deployment target
Added libs needed for text() module. Added support for MACOSX_DEPLOYMENT_TARGET