Compiling the .NET projects as x64 on 64bit machines was causing problems with the unmanaged code.
todo