Fixed all new libraries so they compile. Made alternative main without defs.h