change Core into a portable class library