added println macro, USE THIS instead!
fixed up platform types
explicit cast needed to remove warning