Moved all P/Invoke C/C++ calls to their own static classes depending on the architecture.