core: pass the project directory to the binary build and get rid of that 2-year old "temporary Win32 hack".