At least seven loud blasts were heard in Tripoli early Friday morning as bombs fell in the vicinity of Moammar Gadhafi's main compound of Bab al-Aziziya. 
 
 RETRANSMISSION TO ADD BYLINE - In this Wednesday, Aug. 17, 2011 photo, a Libyan rebel fighter carries a rocket-propelled grenade in Sabratha, 50 miles (75 kilometers) west of Tripoli, Libya. (AP Photo/Giulio... (Associated Press) 
 
 RETRANSMISSION TO ADD BYLINE - In this Wednesday, Aug. 17, 2011 photo, a Libyan rebel fighter enters an incomplete mosque that has been used as shelter during the shelling from Moammar Gadhafi's forces... (Associated Press) 
 
 An Associated Press correspondent staying in a hotel in the capital said he heard the explosions and saw flames in the air as bombs struck the ground. NATO jets were heard circling the sky above. 
 
 Residents in Tripoli also told The Associated Press that at least three blasts were heard on the road leading to the airport in the capital. 
 
 NATO has been bombarding military targets in Libya since a no-fly zone was instituted in March. That includes areas near and in Gadhafi's sprawling Bab al-Aziziya compound, which is the Libyan leader's main headquarters and acts as a military barracks. 
 
 Just 30 miles (48 kilometers) to the west of the capital, opposition fighters in Libya's western mountains claimed control Thursday of the country's last functioning oil refinery, a blow to Moammar Gadhafi's regime in a week of stunning rebel advances that could turn the tide of the 6-month-old civil war. 
 
 The refinery is located in the strategic city of Zawiya, where rebels have made great strides in battles with government forces since their initial assault on Saturday. 
 
 A rebel victory in Zawiya could leave Gadhafi nearly cornered in his increasingly isolated stronghold of Tripoli, the capital, just 30 miles (50 kilometers) to the east along the Mediterranean coast. 
 
 Rebel fighters are now closing in on the capital from the west and the south, while NATO controls the seas to the north. The opposition is in control of most of the eastern half of the country and has declared Benghazi, 620 miles (1,000 kilometers) east of Tripoli, as its de facto capital. 
 
 Families fleeing their homes to avoid a possible rebel assault on Tripoli described growing tensions and deteriorating living conditions in the capital: Security forces have blanketed the city with checkpoints, gun battles are heard after nightfall and power outages last days. 
 
 ___ 
 
 Laub reported from Zintan, Libya. 

 Moammar Gadhafi is making preparations for a departure from Libya with his family for possible exile in Tunisia, U.S. officials have told NBC News, citing intelligence reports. 
 
 One official suggested it was possible that Gadhafi would leave within days, NBC News reported. 
 
 The information obtained by NBC News follows a series of optimistic statements this week from U.S. officials that Gadhafi would soon give up the five-month-old fight and and leave Libya. 
 
 In an on-camera forum at the National Defense University this week, Defense Secretary Leon Panetta said, "I think the sense is that Gadhafi's days are numbered." 
 
 The officials could provide no further details as to conditions or precise timing for Gadhafi's departure, NBC said, and the news report emphasized that there was no guarantee that Gadhafi would follow through on any plans to flee. 
 
 Gadhafi is becoming more isolated in the capital, Tripoli. 
 
 Rebel fighters are closing in from the west and the south while NATO controls the seas to the north. The opposition is in control of most of the eastern half of the country and has declared Benghazi, 620 miles east of Tripoli, as its de facto capital. 
 
 Rebel forces have managed to surround Tripoli and appear to be attempting to cut off supplies and fuel to trigger a collapse, NBC News reported. Families were seen driving away from the city. 
 
 Refinery taken 
 
 The intelligence reports were revealed as opposition fighters in Libya's western mountains claimed control Thursday of the country's last functioning oil refinery, a blow to Gadhafi's regime in a week of stunning rebel advances. 
 
 The refinery is located in the strategic city of Zawiya, where rebels have made great strides in battles with government forces since their initial assault on Saturday. 
 
 "We have full control over the Zawiya oil refinery and we have liberated the whole city except two main streets," Col. Ali Ahrash told The Associated Press. 
 
 The capture of the 120,000-barrel-per-day refinery in Zawiya is not expected to have a major impact on Gadhafi's ability to secure fuel. 
 
 The flow of crude to the refinery from fields in the southwest of Libya had largely been halted since midsummer. The refinery was believed to be running at about one-third of its normal capacity, drawing mainly on crude oil that was in its storage tanks. Zawiya mostly produced fuel oil, not gasoline. 
 
 The BBC reported that one of its news crews were taken around the refinery by rebels and that there was no sign of pro-Gadhafi troops. 
 
 Zawiyais is just 30 miles to the east of Tripoli, along the Mediterranean coast. 
 
 A Libyan rebel fighter carries a rocket-propelled grenade in Sabratha, 50 miles west of Tripoli, on Wednesday. 
 
 Ahrash, who was in Benghazi, said rebels have control of the cities of Surman, Sabratha and Zwara, as well as the road to Tunisia from Tripoli. 
 
 Families fleeing their homes to avoid a possible rebel assault on Tripoli described growing tensions and deteriorating living conditions in the capital: Security forces have blanketed the city with checkpoints, gun battles are heard after nightfall and power outages last days. 
 
 Explosions in Tripoli 
 
 Early Friday morning explosions rocked Gadhafi's main compound of Bab al-Aziziyah. 
 
 Seven thunderous blasts could be felt at a Tripoli hotel where foreign journalists stay. 
 
 An Associated Press correspondent watched flames from the bombs fall from the sky as NATO jets circled over the compound. 
 
 Five loud explosions also shook the center of Tripoli on Thursday afternoon, possibly striking near Gadhafi's compound. NATO jets flew overhead minutes after the blasts. It wasn't immediately clear what was hit or if there were civilian casualties. NATO has bombarded military targets all over Libya since March when a no-fly zone was instituted. 
 
 Besides the seizure of the refinery, Ahrash told the AP that rebels were making progress in taking Zawiya, a city of 200,000 people. 
 
 He said Gadhafi troops were still in control of Gamal Abdel-Nasser Street and were hiding in the hospital there. Ahrash said Omar Mokhtar Street was still under Gadhafi forces control and that a few more troops were patrolling in eastern Zawiya. 
 
 Since the rebels entered Zawiya last week — their most dramatic advance yet after months of stalemate — Gadhafi's troops have been pounding homes, mosques and streets with rockets and mortar fire. 
 
 "In the past three days we have lost 70 fighters and more than 55 were injured," he said.
– Moammar Gadhafi's 42-year rule may be entering its final days, US officials tell NBC, citing intelligence reports. The dictator has made preparations to flee with his family to exile in Tunisia, according to the sources. The rebels seeking to end his rule have made dramatic advances in recent days, leaving Tripoli increasingly isolated. At least seven blasts were heard near Gadhafi's compound this morning as NATO jets pounded Tripoli, according to an AP reporter staying in a hotel in the city. Residents fleeing the city to avoid the expected rebel attack say living conditions have been deteriorating rapidly, with power outages lasting days and gun battles heard after nightfall.