Fix static-no-ACE build on OsX

Thanks: Matteo Brunettini <matteo.brunettini@iit.it>