Allow ports to define statically builtin functions.

Convert unix open() to such.