[build] Drop most uses of LIBRARY_USE_INTERMEDIATE_FILE, clean debug targets