scons: comment most of the remaining major lines of code
scons: fix options handling to use boolean values instead of integers
scons: check if strverscmp is available
scons: check that the same functions exist just as cmake does
scons: check for the same headers that cmake does