Fixed various compilation issue Fixed draft rest library (still experimental and should be removed in the future)