Allow debug embed compiling and add support for Windows and Mac