The only thing I needed to do was include the windows.h header. I don't know why that solved the problem... but it did.