Removing SPUTDEV, obsolete code and #ifdefs from sources