Well.. the function Malpha is included in the machines.dll. I added the .lib file from machines to app.exe. All the dll's had no problem building, just the app.exe.
I seem to have figured out what the problem was. When I was creating the dll's I knew you had to put the following lines at the top of the header files: