Allow selectively disabling lib compilation