Bug 313: move makefiles from SO