How to make sure that my program will be fully portable?
Avoid using platform specific libraries. If you can implement desired functionality using the STL and BOOST only, go ahead.