Better compatibility practices
Removed useless allocation
Merge pull request #3 from PedroHLC/master

Better compatibility practices