Added an API to get the amount of system RAM
The _SC_PHYS_PAGES method of calculating RAM works on Linux.
Fixed compiling on Mac OS X, added a system RAM test