Asia markets carve out slight gains as the dollar languishes