Restructure m2e Portability library.