Fix Visual Studio linkage for release
Initialize bufferAllocated to false