core: implement ppoll()

A simple implementation for ppoll() using poll().
Minoru says ppoll() is needed in programs such as TCPServer.

Signed-off-by: Jaspal Singh Dhillon <jaspal.iiith@gmail.com>
Signed-off-by: Avi Kivity <avi@cloudius-systems.com>