Fix building of libraries with no explicit target type set. See #87.