Fix initialization on OS X