Visual Studio Project Fix

Fixed the visual studio project to generate mex files in cpp/bin. I also
fixed the linux Makefile as well but I don't know if it will work yet.