made changes to compile except for missing libs