Move cgo flag directives into a build constraint to allow custom build situations without conflicts
Don't allow a finalizer to delete ImageSpecs returned from ImageBuf
Don't use a finalizer to delete ImageCache. Only ImageCache.Destroy() should be used explicitely.