Moved platform specific calls in special header file and namespace.