Moved namespace declaration to sys.h

Moved the namespace sys to header file rather than in the individual
headers. Not sure yet if this is a good idea or not...