hyc tkx very much for the tips! I didn't know I had to use the shared library version of openssl, I just fixed the issues as they came along
Although the modded version I did works as expected, now exiting in a specific error that
rtmpdump gives, I think it's not very normal for this to happen, as this problem is happening too often now. I'll post the problem in main forum.