Microlensing by Compact Objects associated with Gas Clouds