Don't build as shared library when DISABLE_DYNLOADING

Change-Id: Ib3339689d41f02b258f6c398887faae28e602a5c