Fix build example by adding --enable-static
Dependencies are needed as static libs so this must be enabled.