Added sizeof() test for size_t.
Added explicit conditional compilation for Linux and NetBSD.
Added conditional logic to Makefile to determine platform libs.