Fixed missing __BEGIN_DECLS / __END_DECLS on MinGW