api: Add FreeBSD API support for MIPS platforms