fixes #3
 - Don't use SDL.
 - Check system error return.
 - Default 32/64-bit to current environment.