removed j flags
added enable-shared flags