Fixes some installation issues with already defined classes or constants