Found the solution but forgot to post here, go to
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build
replace 2022 with your respective visual studio tool run
vcvarsall.bat x64
Which sets up an environment for you to do make. WITHIN THE SAME SHELL! then do
mix deps.compile
which compiles your dependancies after which
after successful compile you can go on building the usual way, unless you have trouble and have to delete the build folder, symptom of this is when you run migration but starting the server iex mix -S phx.server
the site still complains you have not run your migrations and attempt of it brings an error of running migrations on existing ones. In case of such, delete build and you will need to repeat the steps so to rebuild all the artifacts within environment again, but after which you are free to go on as usual.
I could build a cmd script for this sometime or if someone can edit and provide it well then good too.. happy coding.