Added code needed to properly implement INTERNAL SOURCES