Fixed an include order bug.
Functions in headers should be static.
Fixed bug with sync ram timing.