Update OS X build.

Add GCC attributes to printf and scanf functions.
Fixed texture bug. (fixes #3)
Partially fixed water bug.