Use DECL/GET_WINDOWS_FUNCTION in a few more places in place of ad-hoc