As far as I know you cannot actually use 64 bit matlab to build a 32 bit program.
When I faced the same situation, Mathworks recommended me to (also) install 32 bit matlab on my 64 bit windows. I did not try it, but that should allow you to build 32 bit programs again.