Fixed OSG compile bug