Fixed a bug when building without shared libs. Reduced build time by disabling shared and static libs by default. Notice they can be re-enabled with --enable-shared and --enable-static