bugfix: compile in macos