Workaround to work for MacOS X.