The wrapper code is based on the libamr wrapper removed in SVN rev 19365. Signed-off-by: Martin Storsjö <martin@martin.st>