correction and cleanup of build files