can`t compile wallet on linux from sources 
fatal: Not a git repository (or any of the parent directories): .git
g++ -c -O2 -msse2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/ubuntu/ultracoin-master/src -I/home/ubuntu/ultracoin-master/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/netbase.d -o obj/netbase.o netbase.cpp
In file included from netbase.h:11:0,
                 from netbase.cpp:6:
compat.h:48:26: error: myclosesocket declared as an inline variable
 inline int myclosesocket(SOCKET& hSocket)
                          ^
compat.h:48:26: error: SOCKET was not declared in this scope
compat.h:48:34: error: hSocket was not declared in this scope
 inline int myclosesocket(SOCKET& hSocket)
                                  ^
compat.h:49:1: error: expected , or ; before { token
 {
 ^
In file included from netbase.cpp:6:0:
netbase.h:150:42: error: SOCKET has not been declared
 bool ConnectSocket(const CService &addr, SOCKET& hSocketRet, int nTimeout = nConnectTimeout);
                                          ^
netbase.h:151:42: error: SOCKET has not been declared
 bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault = 0, int nTimeout = nConnectTimeout);
                                          ^
netbase.cpp:174:46: error: SOCKET has not been declared
 bool static Socks4(const CService &addrDest, SOCKET& hSocket)
                                              ^
In file included from netbase.h:11:0,
                 from netbase.cpp:6:
netbase.cpp: In function bool Socks4(const CService&, int&):
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:179:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:187:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:198:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:204:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:209:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
netbase.cpp: At global scope:
netbase.cpp:218:46: error: SOCKET has not been declared
 bool static Socks5(string strDest, int port, SOCKET& hSocket)
                                              ^
In file included from netbase.h:11:0,
                 from netbase.cpp:6:
netbase.cpp: In function bool Socks5(std::string, int, int&):
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:223:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:233:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:239:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:244:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:256:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:262:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:267:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:272:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:288:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:305:18: note: in expansion of macro closesocket
         default: closesocket(hSocket); return error("Error: malformed proxy response");
                  ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:309:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:314:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
netbase.cpp: At global scope:
netbase.cpp:321:64: error: SOCKET has not been declared
 bool static ConnectSocketDirectly(const CService &addrConnect, SOCKET& hSocketRet, int nTimeout)
                                                                ^
In file included from netbase.h:11:0,
                 from netbase.cpp:6:
netbase.cpp: In function bool ConnectSocketDirectly(const CService&, int&, int):
compat.h:44:30: error: SOCKET was not declared in this scope
 #define INVALID_SOCKET      (SOCKET)(~0)
                              ^
netbase.cpp:323:18: note: in expansion of macro INVALID_SOCKET
     hSocketRet = INVALID_SOCKET;
                  ^
netbase.cpp:336:12: error: expected ; before hSocket
     SOCKET hSocket = socket(((struct sockaddr*)&sockaddr)->sa_family, SOCK_STREAM, IPPROTO_TCP);
            ^
netbase.cpp:337:9: error: hSocket was not declared in this scope
     if (hSocket == INVALID_SOCKET)
         ^
netbase.cpp:348:24: error: hSocket was not declared in this scope
     int fFlags = fcntl(hSocket, F_GETFL, 0);
                        ^
In file included from netbase.h:11:0,
                 from netbase.cpp:6:
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:352:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:372:17: note: in expansion of macro closesocket
                 closesocket(hSocket);
                 ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:378:17: note: in expansion of macro closesocket
                 closesocket(hSocket);
                 ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:389:17: note: in expansion of macro closesocket
                 closesocket(hSocket);
                 ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:395:17: note: in expansion of macro closesocket
                 closesocket(hSocket);
                 ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:406:13: note: in expansion of macro closesocket
             closesocket(hSocket);
             ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
netbase.cpp:422:9: note: in expansion of macro closesocket
         closesocket(hSocket);
         ^
netbase.cpp: At global scope:
netbase.cpp:482:46: error: SOCKET has not been declared
 bool ConnectSocket(const CService &addrDest, SOCKET& hSocketRet, int nTimeout)
                                              ^
netbase.cpp: In function bool ConnectSocket(const CService&, int&, int):
netbase.cpp:490:5: error: SOCKET was not declared in this scope
     SOCKET hSocket = INVALID_SOCKET;
     ^
netbase.cpp:490:12: error: expected ; before hSocket
     SOCKET hSocket = INVALID_SOCKET;
            ^
netbase.cpp:493:45: error: hSocket was not declared in this scope
     if (!ConnectSocketDirectly(proxy.first, hSocket, nTimeout))
                                             ^
netbase.cpp:499:31: error: hSocket was not declared in this scope
         if (!Socks4(addrDest, hSocket))
                               ^
netbase.cpp:503:64: error: hSocket was not declared in this scope
         if (!Socks5(addrDest.ToStringIP(), addrDest.GetPort(), hSocket))
                                                                ^
netbase.cpp:510:18: error: hSocket was not declared in this scope
     hSocketRet = hSocket;
                  ^
netbase.cpp: At global scope:
netbase.cpp:514:42: error: SOCKET has not been declared
 bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault, int nTimeout)
                                          ^
netbase.cpp: In function bool ConnectSocketByName(CService&, int&, const char*, int, int):
netbase.cpp:520:5: error: SOCKET was not declared in this scope
     SOCKET hSocket = INVALID_SOCKET;
     ^
netbase.cpp:520:12: error: expected ; before hSocket
     SOCKET hSocket = INVALID_SOCKET;
            ^
netbase.cpp:533:49: error: hSocket was not declared in this scope
     if (!ConnectSocketDirectly(nameproxy.first, hSocket, nTimeout))
                                                 ^
netbase.cpp:540:40: error: hSocket was not declared in this scope
             if (!Socks5(strDest, port, hSocket))
                                        ^
netbase.cpp:545:18: error: hSocket was not declared in this scope
     hSocketRet = hSocket;
                  ^
In file included from netbase.h:11:0,
                 from net.h:18,
                 from checkpoints.h:8,
                 from checkpoints.cpp:8:
compat.h:48:26: error: myclosesocket declared as an inline variable
 inline int myclosesocket(SOCKET& hSocket)
                          ^
compat.h:48:26: error: SOCKET was not declared in this scope
compat.h:48:34: error: hSocket was not declared in this scope
 inline int myclosesocket(SOCKET& hSocket)
                                  ^
compat.h:49:1: error: expected , or ; before { token
 {
 ^
In file included from net.h:18:0,
                 from checkpoints.h:8,
                 from checkpoints.cpp:8:
netbase.h:150:42: error: SOCKET has not been declared
 bool ConnectSocket(const CService &addr, SOCKET& hSocketRet, int nTimeout = nConnectTimeout);
                                          ^
netbase.h:151:42: error: SOCKET has not been declared
 bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault = 0, int nTimeout = nConnectTimeout);
                                          ^
make: *** [obj/netbase.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from netbase.h:11:0,
                 from util.h:30,
                 from alert.h:13,
                 from alert.cpp:8:
compat.h:48:26: error: myclosesocket declared as an inline variable
 inline int myclosesocket(SOCKET& hSocket)
                          ^
compat.h:48:26: error: SOCKET was not declared in this scope
compat.h:48:34: error: hSocket was not declared in this scope
 inline int myclosesocket(SOCKET& hSocket)
                                  ^
compat.h:49:1: error: expected , or ; before { token
 {
 ^
In file included from util.h:30:0,
                 from alert.h:13,
                 from alert.cpp:8:
netbase.h:150:42: error: SOCKET has not been declared
 bool ConnectSocket(const CService &addr, SOCKET& hSocketRet, int nTimeout = nConnectTimeout);
                                          ^
netbase.h:151:42: error: SOCKET has not been declared
 bool ConnectSocketByName(CService &addr, SOCKET& hSocketRet, const char *pszDest, int portDefault = 0, int nTimeout = nConnectTimeout);
                                          ^
In file included from alert.cpp:10:0:
net.h:33:15: error: SOCKET was not declared in this scope
 bool RecvLine(SOCKET hSocket, std::string& strLine);
               ^
net.h:33:42: error: expected primary-expression before & token
 bool RecvLine(SOCKET hSocket, std::string& strLine);
                                          ^
net.h:33:44: error: strLine was not declared in this scope
 bool RecvLine(SOCKET hSocket, std::string& strLine);
                                            ^
net.h:33:51: error: expression list treated as compound expression in initializer [-fpermissive]
 bool RecvLine(SOCKET hSocket, std::string& strLine);
                                                   ^
net.h:159:5: error: SOCKET does not name a type
     SOCKET hSocket;
     ^
net.h:213:18: error: expected ) before hSocketIn
     CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : vSend(SER_NETWORK, MIN_PROTO_VERSION), vRecv(SER_NETWORK, MIN_PROTO_VERSION)
                  ^
In file included from alert.cpp:10:0:
net.h: In destructor CNode::~CNode():
net.h:251:13: error: hSocket was not declared in this scope
         if (hSocket != INVALID_SOCKET)
             ^
In file included from netbase.h:11:0,
                 from util.h:30,
                 from alert.h:13,
                 from alert.cpp:8:
compat.h:44:30: error: SOCKET was not declared in this scope
 #define INVALID_SOCKET      (SOCKET)(~0)
                              ^
net.h:251:24: note: in expansion of macro INVALID_SOCKET
         if (hSocket != INVALID_SOCKET)
                        ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
net.h:253:13: note: in expansion of macro closesocket
             closesocket(hSocket);
             ^
In file included from checkpoints.h:8:0,
                 from checkpoints.cpp:8:
net.h:33:15: error: SOCKET was not declared in this scope
 bool RecvLine(SOCKET hSocket, std::string& strLine);
               ^
net.h:33:42: error: expected primary-expression before & token
 bool RecvLine(SOCKET hSocket, std::string& strLine);
                                          ^
net.h:33:44: error: strLine was not declared in this scope
 bool RecvLine(SOCKET hSocket, std::string& strLine);
                                            ^
net.h:33:51: error: expression list treated as compound expression in initializer [-fpermissive]
 bool RecvLine(SOCKET hSocket, std::string& strLine);
                                                   ^
net.h:159:5: error: SOCKET does not name a type
     SOCKET hSocket;
     ^
net.h:213:18: error: expected ) before hSocketIn
     CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : vSend(SER_NETWORK, MIN_PROTO_VERSION), vRecv(SER_NETWORK, MIN_PROTO_VERSION)
                  ^
In file included from checkpoints.h:8:0,
                 from checkpoints.cpp:8:
net.h: In destructor CNode::~CNode():
net.h:251:13: error: hSocket was not declared in this scope
         if (hSocket != INVALID_SOCKET)
             ^
In file included from netbase.h:11:0,
                 from net.h:18,
                 from checkpoints.h:8,
                 from checkpoints.cpp:8:
compat.h:44:30: error: SOCKET was not declared in this scope
 #define INVALID_SOCKET      (SOCKET)(~0)
                              ^
net.h:251:24: note: in expansion of macro INVALID_SOCKET
         if (hSocket != INVALID_SOCKET)
                        ^
compat.h:60:44: error: myclosesocket cannot be used as a function
 #define closesocket(s)      myclosesocket(s)
                                            ^
net.h:253:13: note: in expansion of macro closesocket
             closesocket(hSocket);
             ^
make: *** [obj/alert.o] Error 1
make: *** [obj/checkpoints.o] Error 1