Removed inline declarations because they were breaking compilation on windows.