Xombie: Thanks for your input. I finally solved the problem. It was not on the code or the software. In fact, the issue has to do with some idiosyncrasies of OSX... whenever it finds more than 1 library, even they are the same version, the execution stops.
I had to read a LOT to get here, and it was so simple after all...
Thanks to all of you guys for your support.