I've managed to compile the agent, however, after make install I get:
Launching OCS Inventory NG Unix Unified agent...
Can't exec "ocsinventory-agent": A file or directory in the path name does not exist. at postinst.pl line 458, <STDIN> line 16.
-> Failed!
You may want to launch the agent with the --verbose or --debug flag.
New settings written! Thank you for using OCS Inventory