Added mac support *hopefully*