Change types of all variable from linux specific __uxx to uintxx_t.
Move all linux specific code under __linux__ defines and add
some necessary FreeBSD defines.
Add dummy BSD module and modify scons script to build proper module
based on host OS.