Added API_FUNCTION macro to flag library's public functions.