Flesh out some more library routines, and disable builtins for GCC

Signed-off-by: Tom Spink <tspink@gmail.com>