Reorganized project, so that most sources are now compiled into a static library.