Enabled 32 bit Linux builds.
Consistently create build directory.
Fixed bizzare problem with the makefile on OSX, that prevented the build directory from being created.
Fix linux library creation.