Export the main api on windows