Variablespeed: Fix aliasing violation

Also
Fix mismatch between header and implementation

Credits: Bernhard Rosenkraenzer

Signed-off-by: dragon <dragon7780@hotmail.nl>