R40m to turn these derelict buildings into housing