Print a warning if a gem extension cannot be loaded.

Instead of crashing.

Closes #1538.