add the compatibility to MAC, this is used to compile the standalone app on MAC