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...@gmail.com>