improvements for compiling with gcc 4.9

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