Check kernel capabilities

Allow docker to run on kernels that does not support all its features like memory limit.

Known regression: No raw mode support when trying to docker run in tty mode with memory limit while it is not supported.
This regression will soon be fixed with the API