Removed arch specific optimisations and fixed compiler warning

Signed-off-by: Damien Zammit <damien@zamaudio.com>