Split shm into 20 modules and add bytecompilation Makefile