make sure foreign and memisc are there