I have some C++ code that includes a method called CreateDirectory(). Previously the code only used STL and Boost, but I recently had to include
CreateDirectory().
#pragma push_macro("CreateDirectory")
If nothing works, instead of renaming you could use your own namespace for your functions.