Use smaller chunk sizes
Fix invalid const definition
Fix compile error on OS X 10.9